<?
//sql查错用 不出现任何查询结果
include_once("/var/www/html/new/com.inc.php");


if(!$_SESSION['developers'] || isset($_REQUEST['du'])){
    $user_pool = array(// 账号登录
        'zax'=>'60a3baaf7a004fdadd4865e2ecf0ea1f',//csjhaoshuai
    );
    $pass = $user_pool[$_REQUEST['du']];
    if($pass!=''){
        if($pass==md5(md5($_REQUEST['dp']))) $_SESSION['developers'] = 1;
    }

}else{
}?>

<?if(!$_SESSION['developers']):// 显示登录?>
    <!DOCTYPE html><head><meta charset="utf-8"/><title>SuperAs0.01</title><script type="text/javascript" src="jquery-2.1.1.min.js"></script><script type="text/javascript" src="jquery-ui.min.js"></script><style type="text/css">*{margin:0;padding:0;}a{text-decoration:none;color:#000;}body{background:#EDEFF0;}.ui-form-txt{outline:none;height:30px;margin-bottom:10px;font-size:1em;color:#333;border:1px solid #98A1A6;}.ui-header{width:100%;height:35%;background:#137BC3;position:absolute;z-index:-9;}.ui-login-box{width:600px;height:400px;position:absolute;top:35%;left:50%;margin-left:-300px;margin-top:-60px;border-radius:5px;padding-bottom:20px;}.ui-login-header{height:60px;}.ui-login-conent{background:#FFF;box-shadow: 0px 2px 4px rgba(0,0,0,0.1);padding:40px 0;}.ui-form-item{width:500px;margin:10px auto;}.ui-user,.ui-pass{width:440px;background:url(a/ipt-sprite.png) no-repeat;padding:5px 10px 5px 50px;}.ui-user{background-position:0 -95px;}.ui-pass{background-position:0 -45px;}.ui-submit{background:#137BC3;height:50px;color:#FFF;border:none;cursor:pointer;text-align:center;font-size:20px;width:100%;}.ui-submit:hover{background-color:#0086E3;}.loss-pass{color:#0890FC;float:right;}.loss-pass:hover{text-decoration:underline;}</style><script></script></head><body><div class="ui-header"></div><div class="ui-login-box">	<div class="ui-login-header">		<div style="background:#FFF;opacity:0.5;height:100%;"></div>		<p style="color:#3c3d3f;position:absolute;left:0;top:0;font-size:22px;font-weight:bold;text-align:center;line-height:60px;width:100%;height:60px;">As.请先登录</p>	</div>	<form action="" method="post">	<div class="ui-login-conent">		<div class="ui-form-item">			<input type="text" name="du" placeholder="请输入登录用户名" class="ui-form-txt ui-user" autocomplete="off"/>		</div>		<div class="ui-form-item">			<input type="password" name="dp" value="" class="ui-form-txt ui-pass"/>		</div>		<div class="ui-form-item">			<label>			<input type="checkbox" style="width:16px;height:16px;margin-right:4px;position:relative;top:2px;"/>记住密码			</label>			<a href="javascript:void(0);" class="loss-pass">忘记密码</a>		</div>		<div class="ui-form-item">			<input type="submit" value="登录" class="ui-submit"/>		</div></div>	</form></div></body></html>
<?else:?>
    <script src="http://www.12301.cc/js/jquery-1.9.1.min.js"></script>
    <form action="" method="post" id='mainform'>
        <textarea style="width:500px;height:100px;" name="heiBoy">
            <?=$_REQUEST['heiBoy']?>
        </textarea><br/>
        <input type="button" id='hehe' value="查询"/><br/>
    </form>
    <div id='msg'>
    </div>
<?endif;?>
<script>
    $("#hehe").click(function(){
        var param =  $("form#mainForm").serialize();
        $.ajax({
            type:'POST',url: '//dev.12301.cc/module/zax/a/a.php',data: param,
            success:function(data){
                $("div#msg").html(data);
            }
        })

    })
</script>